import service from "@/request/service"

const http = {
	get(url,param){
		const config = {
			method:'get',
			params:param?param:undefined,
			url:url
		}
		return service(config)
	},
	post(url,param){
		const config = {
			method:'post',
			data:param?param:undefined,
			url:url
		}
		return service(config)
	},
	put(url,param){
		const config = {
			method:'put',
			params:param?param:undefined,
			url:url
		}
		return service(config)
	},
	delete(url,param){
		const config = {
			method:'delete',
			params:param?param:undefined,
			url:url
		}
		return service(config)
	}
}

export default http